#include "Papagal.h"
Papagal::Papagal(){
  Gender a=static_cast<Gender>(rand()%2);
  (*this).limitaVarsta=150;
  (*this).varsta=0;
  (*this).sex=a;
  (*this).culoarePene=verde;
  (*this).oua=3;
  (*this).specie=papagal;
}

 void Papagal::print(){
  std::cout<<"Papagal |";
   if ((*this).isMale()) std::cout<<" Sex: M |";
  else std::cout<<" Sex: F |";
  std::cout<<" Varsta: "<<(*this).getVarsta()<<" | ";
  std::cout<<"Culoare pene: verde\n";
}

bool Papagal::isGestant()
{
    if ((*this).isMale()) return false;
    else if((*this).getNrOua()>0 && (*this).getVarsta()>7) return true;
    return false;

}

Papagal* Papagal::giveBirth(){
   (*this).oua--;
   return new Papagal();

}

void Papagal::distruge()
  {
     this->~Papagal();
  }

